package com.tjec.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tjec.project.system.mapper.BmsExpertCertificationMapper;
import com.tjec.project.system.domain.BmsExpertCertification;
import com.tjec.project.system.service.IBmsExpertCertificationService;

/**
 * 专家持证情况Service业务层处理
 * 
 * @author cjj
 * @date 2020-05-09
 */
@Service
public class BmsExpertCertificationServiceImpl implements IBmsExpertCertificationService 
{
    @Autowired
    private BmsExpertCertificationMapper bmsExpertCertificationMapper;

    /**
     * 查询专家持证情况
     * 
     * @param guid 专家持证情况ID
     * @return 专家持证情况
     */
    @Override
    public BmsExpertCertification selectBmsExpertCertificationByGuid(String guid)
    {
        return bmsExpertCertificationMapper.selectBmsExpertCertificationByGuid(guid);
    }

    /**
     * 查询专家持证情况列表
     * 
     * @param bmsExpertCertification 专家持证情况
     * @return 专家持证情况
     */
    @Override
    public List<BmsExpertCertification> selectBmsExpertCertificationList(BmsExpertCertification bmsExpertCertification)
    {
        return bmsExpertCertificationMapper.selectBmsExpertCertificationList(bmsExpertCertification);
    }

    /**
     * 新增专家持证情况
     * 
     * @param bmsExpertCertification 专家持证情况
     * @return 结果
     */
    @Override
    public int insertBmsExpertCertification(BmsExpertCertification bmsExpertCertification)
    {
        return bmsExpertCertificationMapper.insertBmsExpertCertification(bmsExpertCertification);
    }

    /**
     * 修改专家持证情况
     * 
     * @param bmsExpertCertification 专家持证情况
     * @return 结果
     */
    @Override
    public int updateBmsExpertCertification(BmsExpertCertification bmsExpertCertification)
    {
        return bmsExpertCertificationMapper.updateBmsExpertCertification(bmsExpertCertification);
    }

    /**
     * 批量删除专家持证情况
     * 
     * @param guids 需要删除的专家持证情况ID
     * @return 结果
     */
    @Override
    public int deleteBmsExpertCertificationByGuids(String[] guids)
    {
        return bmsExpertCertificationMapper.deleteBmsExpertCertificationByGuids(guids);
    }

    /**
     * 删除专家持证情况信息
     * 
     * @param guid 专家持证情况ID
     * @return 结果
     */
    @Override
    public int deleteBmsExpertCertificationByGuid(String guid)
    {
        return bmsExpertCertificationMapper.deleteBmsExpertCertificationByGuid(guid);
    }
}
